<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="Generator" content="Trainercity v1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="<?php echo $this->_var['keywords']; ?>" />
<meta name="Description" content="<?php echo $this->_var['description']; ?>" />
<title><?php echo $this->_var['page_title']; ?></title>
<link href="<?php echo $this->_var['ecs_css_path']; ?>" rel="stylesheet" type="text/css" />

<?php echo $this->smarty_insert_scripts(array('files'=>'common.js,user.js,transport.js')); ?>
<body>

<?php if ($this->_var['action'] == 'login'): ?>
<div class="box1">
	<div class="header">
    	<div class="logos"><a href="index.php"><img src="themes/default/images/001.gif" /></a></div>
        <div class="bord">
        </div>
    </div>
    <div class="center">
    <form name="formLogin" action="user.php" method="post" onSubmit="return userLogin()">
         <div class="liuua" style="padding:20px;">
         	 <div class="login_dengl">
             	<div class="liuua1">Log in</div>
                <div class="denglukuang">
                	<div class="degnlu_1">
                    	<div class="email_kk">Email :</div><div class="input_ys"><input name="email" type="text" size="25" class="shurukuang"/></div>
                    </div>
                    <div class="degnlu_1">
                    	<div class="email_kk">Password :</div><div class="input_ys"><input name="password" type="password" size="25" class="shurukuang"/></div>
                    </div>
                </div>
             </div>
           
                 <div class="anniu_dl">
                    <div>				
                    <input type="hidden" name="act" value="act_login" />
                    <input type="hidden" name="back_act" value="<?php echo $this->_var['back_act']; ?>" />
                    <input type="submit" name="submit" value="Submit" class="em_landing" />
					</div>				
                 
				 <div style="text-align:right;">
					<a href="user.php?act=get_password" style=" height:30px; line-height:30px; ">Forgot Your Password?</a>
                 </div></div>
            
         </div>
     </form>
  </div>
   <?php echo $this->fetch('library/page_footer.lbi'); ?>
</div>
<?php endif; ?>



<?php if ($this->_var['action'] == 'register'): ?>
    <?php echo $this->smarty_insert_scripts(array('files'=>'utils.js')); ?>
<div class="box1">
	<div class="header">
    	<div class="logos"><a href="index.php"><img src="themes/default/images/001.gif" /></a></div>
    </div>
    <div class="center">
	
	  <?php if ($this->_var['type'] == '1'): ?>
      <div class="register">
          <strong class="p1 titleFont">Trainer Sign Up for Free</strong>
      </div>
         <div class="introdution">1. Make extra money, unlock your training talents<br />
           2. Direct access to local clients<br />
           3. Grow your personal training brand</div>
      <?php else: ?>
      <div class="register">
          <strong class="p1 titleFont">Get excited!!</strong> You are about to experience a new way to find personal trainers!!
      </div>
         <div class="introdution">1. Set your own training goal and budgets<br />
           2. Choose the trainer who is passionate and experienced about helping you to reach your unique fitness goal.<br />
         3. Invite your friend or meet new friends while training with your personal trainer</div>
      <?php endif; ?>

     <div class="Account">
     	<div class="ac_neibian">
            <div class="Account_1" style="text-align:center; padding:10px 0 10px 0;">
            <?php if ($this->_var['type'] == '1'): ?>
            <a href="#" style="font-size:20px; font-weight:bold; color:#900;">Trainers join</a>
            <?php else: ?>
            <a href="#" style="font-size:20px; font-weight:bold; color:#900">Exercisers join</a>
            <?php endif; ?>
            </div>
             <div class="Account_2">
             <form action="user.php" class="userReg" method="post" name="formUser" onsubmit="return register();">
			   <p>
                       <label>Email address*</label><input name="email" type="text" id="email" onblur="checkEmail(this.value);" tabindex="1" />
                       <br /><span id="email_notice" style="color:#FF0000; margin-left:130px;"></span>
               </p>			
               <p>
						<label>Pick a username*</label><input name="username" type="text" tabindex="2" id="username" onblur="is_registered(this.value);" />
                        <br /><span id="username_notice" style="color:#FF0000;margin-left:130px;"></span>
               </p>
			   <p>
						<label for="url">Create password*</label><input name="password" type="password" id="password" onblur="check_password(this.value);" onkeyup="checkIntensity(this.value)" tabindex="3" />
                         <br /><span style="color:#FF0000;margin-left:130px;" id="password_notice"></span>
               </p>
               <p>
					    <table width="245" border="0" cellspacing="0" cellpadding="1" style="margin-left:130px;">
                        <tr align="center">
                          <td width="33%" id="pwd_lower"><?php echo $this->_var['lang']['pwd_lower']; ?></td>
                          <td width="33%" id="pwd_middle"><?php echo $this->_var['lang']['pwd_middle']; ?></td>
                          <td width="33%" id="pwd_high"><?php echo $this->_var['lang']['pwd_high']; ?></td>
                        </tr>
                        </table>
               </p>
               <p>
						<label for="url">Confirm password</label><input name="confirm_password" type="password" id="conform_password" onblur="check_conform_password(this.value);" tabindex="3" />
                        <br /><span style="color:#FF0000;margin-left:130px;" id="conform_password_notice"></span>
               </p>
                    <div class="p2" style="padding:10px 0 0 130px; color:#999">
                        By clicking on "Continue" I agree to terms of service
               </div>
                <div class="Continue">
                <input name="act" type="hidden" value="act_register" >
                <input name="user_type" type="hidden" value="<?php echo $this->_var['type']; ?>" >
                <input type="hidden" name="back_act" value="<?php echo $this->_var['back_act']; ?>" />
                <input name="Submit" type="submit" value="Continue" class="sohu">
              </div>
              </form>
           </div>
           </div>
      </div>
     
</div>
<?php echo $this->fetch('library/page_footer.lbi'); ?>
</div>
<?php endif; ?>



    <?php if ($this->_var['action'] == 'get_password'): ?>

	<div class="box1">
	<div class="header">
    	<div class="logos"><a href="index.php"><img src="themes/default/images/001.gif" /></a></div>
         <div class="bord">
        </div>
    </div>
    <div class="center">
    <!--<form action="user.php" method="post" name="getPassword" onsubmit="return submitPwdInfo();"> -->
	<form action="user.php" method="post" name="getPassword" > 
         <div class="liuua">
         	<div class="liuua1">Get Password</div>
            <div class="rgwenti">
            	<div class="email_baoc">Email: &nbsp;&nbsp;<input name="email" type="text" size="30" class="liuub1" style="width:255px;"/><input name="user_name" type="hidden" size="30" class="inputBg" value="nothing"/></div>
                 <div class="tijiao_bc">				 	
                    <div class="liangge_an">
                    <input type="hidden" name="act" value="send_pwd_email" />
              		<input type="submit" name="submit" value="Submit" class="em_landing" style="border:none;" />
                    </div>
					<div class="liangge_an">
              		<input name="button" type="button" onclick="history.back()" value="Cancel" style="border:none;" class="em_landing" />
                    </div>
                 </div>
            </div>
         </div>
     </form>
  </div>
   <?php echo $this->fetch('library/page_footer.lbi'); ?>
</div>   
<?php endif; ?>



<?php if ($this->_var['action'] == 'reset_password'): ?>
	<div class="box1">
	<div class="header">
    	<div class="logos"><a href="index.php"><img src="themes/default/images/001.gif" /></a></div>
         <div class="bord">
        </div>
    </div>
    <div class="center">
    <form action="user.php" method="post" name="getPassword2" onSubmit="return submitPwd()">
         <div class="liuua">
         	<div class="liuua1">Reset Password</div>
            <div class="liuub">
            	<div class="liuub2" align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $this->_var['lang']['new_password']; ?>: &nbsp;&nbsp;<input name="new_password" type="password" size="25" class="inputBg" /></div>
                <div class="liuub2" align="left"><?php echo $this->_var['lang']['confirm_password']; ?>: &nbsp;&nbsp;<input name="confirm_password" type="password" size="25"  class="inputBg"/></div>
				<br />
                
                 <div class="liuub2">
                 	
                    <div >
                    <input type="hidden" name="act" value="act_edit_password" />
            		<input type="hidden" name="uid" value="<?php echo $this->_var['uid']; ?>" />
					<input type="hidden" name="email" value="<?php echo $this->_var['email']; ?>" />
            		<input type="hidden" name="code" value="<?php echo $this->_var['code']; ?>" />
            		<input type="submit" name="submit"  class="liuub22" value="<?php echo $this->_var['lang']['confirm_submit']; ?>" />
                    </div>
                 </div>
            </div>
         </div>
     </form>
  </div>
   <?php echo $this->fetch('library/page_footer.lbi'); ?>
</div>
<?php endif; ?>

<div class="blank"></div>
</body>
</html>
